<%@include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%-- 
    Document   : resource_sharing
    Created on : Sep 12, 2012, 2:15:13 PM
    Author     : Hung
--%>
      <div class="divborder1" style="width:450px;" align="center">
        <div class="boxTitle1"><div class="boxTitle2" style="text-align: center; margin-top: 8px;">Groups sharing Resource</div></div>
            <div  id="wrapgroupsearch">
                <c:forEach var="grp" items="${actionBean.groupsUnSharing}" >
                    <div class="boxtag">
                            <c:if test="${empty grp.logo}">
                                    <div><img class="boxtagImg"   alt="" align="left" border="0" width="68px" height="51px" src="images/advertising.jpg"></div>
                                </c:if>
                                <c:if test="${not empty grp.logo}">
                                    <div><img class="boxtagImg"   alt="" align="left" border="0" width="68px" height="51px" src="${grp.logo}"></div>
                                </c:if>                  
                                    <div class="boxtagTitle" style="width: 400px;" align="left"> ${fn:substring(grp.name,0,30)} </div>
                                    <div class="boxtagText" style="width: 220px;">${fn:substring(grp.description,0,80)}...</div>
                        <div style="float:right; position:relative;">

                        <div align="left" class="shareResource" style="width: 100px;">            
                            <s:link  class="btnShare boxtagText" style="text-decoration: none;" beanclass="spatialmarketplace.cem.action.ResourceSharingActionBean" event="shareGroupResource">
                                Share Resource
                                <s:param name="groupId" value="${grp.groupId}"/>
                                <s:param name="resourceId" value="${actionBean.resource.resourceId}"/>

                            </s:link>
                        </div>

                        </div>

                    </div> 
                </c:forEach>
            </div><!-- End wrap  -->
            
            <div class="boxfooter" style="height:10px;">
            </div>
        </div>
      
 <style type="text/css">
/* CSS JGM for Create */
#divborder {
	border:1px solid Silver;
	border-radius:81px;
	-moz-border-radius:81px; /* Firefox 3.6 and earlier */
	background-color:#F9F9F9;
	width:970px;
	height:950px;
	;
}
#s-Label_1 {
	color: #003C4C;
	text-align:left;
	font-size: 16pt;
	font-style: normal;
	font-weight: bold;
	line-height: 24pt;
	margin-left:50px;
}
#s-Label_2 {
	color: #003C4C;
	font-size: 16pt;
	font-weight: bold;
}
.divborder1
{
	border:1px solid #cccccc;
	border-radius:9px;
	-moz-border-radius:9px; /* Firefox 3.6 and earlier */
	background-color:#999;
	padding: 5px;
       /* margin-left: 10px;*/
       
}
.boxTitle1
{
    color:#FFF; 
    background-color:#3b5998; 
    font-family:Tahoma; 
    font-size:11pt; 
    font-weight:bold; 
    line-height:11pt; 
    text-align:left; 
    border:1px solid #4462A0; 
    height:30px; 
    font-style:normal;
}
.boxMiddle
{
    color:#333; 
    font-size:10px; 
    background-color:#F2F2F2; 
    font-family:Tahoma; 
    font-weight:bold; 
    line-height:11pt; 
    text-align:left; 
    border:1px solid #D8D8D8; 
    height:30px; 
    font-style:normal;
    text-align:left;
}
.boxtag
{
    border-bottom:1px solid #A7A7A7; 
    cursor:pointer; 
    height: 68px; 
    background-color: white; 
    padding-top: 7px; 
    text-align:center;
}
.boxtagImg
{
    margin-left:10px; 
    margin-right:10px;
}
.boxtagTitle
{
   font-family:Tahoma; 
   font-weight:bold; 
   font-size:11pt; 
   color:#3960A0; 
   width: 241px; 
   margin-top:10px; 
}
.boxtagText
{
   float:left; 
   position:relative; 
   font-family:Tahoma; 
   font-weight:bold; 
   font-size:8pt; 
   color:#999999; 
   text-align:justify; 
}
.boxfooter
{ 
    background-color:#F2F2F2; 
    border:1px solid #D8D8D8;
}
</style>